calculate length of string in c without using strlen